package com.wyx.serive;

import org.apache.ibatis.session.SqlSession;

import com.wyx.dao.AdminDao;
import com.wyx.entity.Admin;
import com.wyx.factory.SqlSessionFactoryUtil;

public class AdminSerives {
	SqlSession sqlSession=null;
	public Admin adminLogin(String adminname,String adminpass){
		sqlSession=SqlSessionFactoryUtil.getSqlSession();
		AdminDao adminDao=sqlSession.getMapper(AdminDao.class);
		Admin admin=adminDao.adminLogin(adminname, adminpass);
		return admin;
	}

}
